<template>
	<view class="big">
		<view class="big-every" v-for="(item,index) in historyList.data" :key="index">
			<view class="top" v-for='(ite,ind) in item.item' :key="ind">		
				<view class="img">
					<image :src="ite.goods_image" alt="">
				</view>
				<view class="conent">
					<view class="left">
						<p>{{ite.goods_title}}</p>
						<span>{{ite.goods_sku_text||''}}</span>
					</view>
					<view class="right">
						<p>¥{{ite.goods_price}}</p>
						<span>x{{ite.goods_num}}</span>
					</view>
					<view class="con-top">
						<text v-if="ite.status_name=='已评价'">交易完成</text>
						<text v-else>{{ite.status_name}}</text>
					</view>
				</view>
				<view class="footer">
					<text>实付款¥{{item.goods_amount}}</text>
				</view>
			</view>
			<view class="bottom">
				<!-- item.status_name -->
				<div class="left" v-if="item.status_name">删除订单</div>
				<div class="left" v-else>删除记录</div>
				<div class="right" v-if="item.status_name">加入购物车</div>
				<div class="right" v-else @click='Details'>查看详情</div>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		props:['historyList'],
		data(){
			return{
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	.big {
		padding: 0 16rpx;
		.big-every{
			width: 100%;
			height: 342rpx;
			background: #FFFFFF;
			box-shadow: 0rpx 8rpx 36rpx 0rpx rgba(188,188,188,0.25);
			border-radius: 16rpx 16rpx 16rpx 16rpx;
			padding: 32rpx;
			position: relative;
			margin-top: 20rpx;
			
			.top{
				display: flex;
				
				.img{
					width: 160rpx;
					height: 160rpx;
					image{
						width: 100%;
						height: 100%;
					}
				}
				.conent{
					
					margin-top:32rpx ;
					margin-left: 16rpx;
					.left{
						width: 316rpx;
						p{
							width: 316rpx;
							font-size: 32rpx;
							font-family: Source Han Sans SC-Medium, Source Han Sans SC;
							font-weight: 500;
							color: #001B0A;
							white-space: nowrap;
							overflow: hidden;
							text-overflow: ellipsis;
						}
						span{
							font-size: 24rpx;
							font-family: Source Han Sans SC-Regular, Source Han Sans SC;
							font-weight: 400;
							color: #AAAAAA;
						}
					}
					.con-top{
						position: absolute;
						top: 20rpx;
						right: 32rpx;
						height: 48rpx;
						// width: 100%;
						font-size: 24rpx;
						font-family: Source Han Sans SC-Regular, Source Han Sans SC;
						font-weight: 400;
						color: #E23434;
						line-height: 48rpx;
						// padding-left: 494rpx;
						// margin-top: 32rpx;
					}
					.right{
						position: absolute;
						top: 70rpx;
						
						right: 32rpx;
						
						p{
							width: 90rpx;
							height: 36rpx;
							font-size: 24rpx;
							font-family: Source Han Sans SC-Medium, Source Han Sans SC;
							font-weight: 500;
							color: #001B0A;
						}
						span{
							width: 38rpx;
							height: 36rpx;
							font-size: 24rpx;
							font-family: Source Han Sans SC-Medium, Source Han Sans SC;
							font-weight: 500;
							color: #AAAAAA;
							margin-left: 65rpx;
						}
					}
					
				}
				.footer{
					position: absolute;
					top: 178rpx;
					right: 32rpx;
					width: 196rpx;
					height: 48rpx;
					font-size: 28rpx;
					font-family: Source Han Sans SC-Bold, Source Han Sans SC;
					font-weight: bold;
					color: #000000;
					line-height: 48rpx;
				}
			}
			.bottom{
				display: flex;
				position: absolute;
				bottom: 32rpx;
				right: 32rpx;
				.left{
					width: 176rpx;
					height: 64rpx;
					border-radius: 44rpx 44rpx 44rpx 44rpx;
					border: 2rpx solid #EEEEEE;
					font-size: 28rpx;
					font-family: Source Han Sans SC-Regular, Source Han Sans SC;
					font-weight: 400;
					color: #001B0A;
					line-height: 64rpx;
					text-align: center;
					margin-right: 32rpx;
				}
				.right{
					width: 176rpx;
					height: 64rpx;
					border-radius: 44rpx 44rpx 44rpx 44rpx;
					border: 2rpx solid  #AAAAAA;
					font-size: 28rpx;
					font-family: Source Han Sans SC-Regular, Source Han Sans SC;
					font-weight: 400;
					color: #001B0A;
					line-height: 64rpx;
					text-align: center;
				}
			}
		}
	}
</style>